package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@PropertySource(value = "classpath:properties/redis.properties",encoding = "utf-8")
public class RedisProController {


    @Value("${redisPro.host}")
    private String host;
    @Value("${redisPro.port}")
    private Integer port;

    @GetMapping("/getNodePr")
    public String getNodePro(){
        return "RedisPro节点"+host+":"+port;
    }

}
